/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.suarte.core.service.impl;

import com.suarte.core.Company;
import com.suarte.core.dao.CompanyDao;
import com.suarte.core.service.CompanyManager;
import org.appfuse.service.impl.GenericManagerImpl;

import java.util.List;

/**
 * @date   Apr 07, 2011
 * @author Ggutierrez
 */
public class CompanyManagerImpl extends GenericManagerImpl<Company, Long> implements CompanyManager {
    CompanyDao companyDao;

    public CompanyManagerImpl(CompanyDao companyDao) {
        super(companyDao);
        this.companyDao = companyDao;
    }

    public List<Company> findCompanies() {
        return companyDao.findCompanies();
    }

    public List<Company> findCompanies(String description) {
        return companyDao.findCompanies(description);
    }
}
